// AdjMGraph.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "stdio.h"
#include "stdlib.h"

typedef char DataType;
#define MaxSize 100
#define MaxVertices 10
#define MaxEdges 100
#define MaxWeight 10000

#include "SeqList.h"
#include "AdjMGraph.h"
#include "AdjMGraphCreate.h"

int _tmain(int argc, _TCHAR* argv[])
{
	AdjMGraph g1;
	DataType a[] = {'A','B','C','D','E'};
	RowColWeight rcw[] = {{0,1,10},{0,4,20},{1,3,20},{2,1,40},{3,2,50}};
	int n =5, e=5;

	CreateGraph(&g1, a, n, rcw, e);
	PrintAdjMGraph(g1);

	DeleteEdge(&g1,0,4);
	PrintAdjMGraph(g1);
	DeleteVertex(&g1,3);
	PrintAdjMGraph(g1);
	
	getchar();
	return 0;
}

